package entity

type MessageNotify struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	EbikeId int64 `gorm:"column:ebike_id;type:BIGINT" json:"ebike_id"`

	EbikeName string `gorm:"column:ebike_name;type:VARCHAR(255)" json:"ebike_name"`

	MessageType int `gorm:"column:message_type;type:TINYINT" json:"message_type"`

	Title string `gorm:"column:title;type:VARCHAR(255)" json:"title"`

	Content string `gorm:"column:content;type:VARCHAR(255)" json:"content"`

	Flag int `gorm:"column:flag;type:TINYINT" json:"flag"`

	Extend string `json:"'extend'"`

	RelationId int64 `json:"relation_id"`

	UserId int64 `json:"user_id"`

	FrameCode string `json:"frame_code"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *MessageNotify) TableName() string {
	return "message_notifys"
}
